package com.tc.quartz.frame.common;

import java.util.HashMap;
import java.util.Map;

/**
 * Const.java
 * @author yongjin.ye
 *
 */
public class Constant {
	

	//密码盐值12 
	public static final String LOGIN_PASS_SALT = "$apr1$ssffffff$T1iC4297f44b13955235245b299d7a93Rx7tCY6OczpuVHAQu.$apr1$sss$/qk3IJdn429755297399d7a93KXc0uQQr8o./1.";
	public static final int LOGIN_LOCK_BATCH = 5; //连续登陆失败次数
	public static final int LOGIN_LOCK_TIME = 1000 * 60 * 30; //连续登陆失败后锁定时间
	/** session key **/
	public static final String LOGIN_SESSION = "LOGIN_SESSION";
	public static final String ADMIN_LOGIN_NAME = "quartzadmin";
	
	
	/**
	 * 每页大小
	 */
	public static final int PAGE_SIZE = 20;

	/** 触发器状态 */
	public final static Map<String, String> QUARTZ_STATE_MAP;

	static{
		//初始化触发器状态
		QUARTZ_STATE_MAP = new HashMap<String, String>();
		QUARTZ_STATE_MAP.put("PAUSED", "暂停");
		QUARTZ_STATE_MAP.put("NORMAL", "正常状态");
		QUARTZ_STATE_MAP.put("NONE", "Trigger已完成");
		QUARTZ_STATE_MAP.put("ERROR", "错误");
		QUARTZ_STATE_MAP.put("BLOCKED", "阻塞");
		QUARTZ_STATE_MAP.put("COMPLETE", "触发完成");
		QUARTZ_STATE_MAP.put("WAITING", "等待  ");
		QUARTZ_STATE_MAP.put("ACQUIRED", "正常执行 ");
		QUARTZ_STATE_MAP.put("PAUSED_BLOCKED", "暂停(阻塞)");
		
	}
}